package com.iwish.server.storage.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateHelper {
	public static String dateFormat(Date date,String pattern) {
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        String str = sdf.format(date);
        return str;
    }
	public static String dateFormat(Date date) {
        return dateFormat(date,"yyyy-MM-dd HH:mm:ss");
    }
}
